package com.example.lotterybackend.common.errorcode;

/**
 * service层错误码常量
 */
public interface ServiceErrorCodeConstants {
    // ===== 用户业务异常 =====
    ErrorCode USER_REG_PARAM_NULL = new ErrorCode(100, "用户注册信息为空!");
    ErrorCode USER_REG_PWD_ERROR = new ErrorCode(101, "用户注册密码非法!");
    ErrorCode USER_REG_MOBILE_ERROR = new ErrorCode(102, "用户注册手机号非法!");
    ErrorCode USER_REG_MAIL_ERROR = new ErrorCode(103, "用户注册邮箱非法!");
    ErrorCode USER_REG_IDENTITY_ERROR = new ErrorCode(104, "用户注册身份非法!");
    ErrorCode USER_REG_MAIL_EXISTS = new ErrorCode(105, "用户注册邮箱已存在!");
    ErrorCode USER_REG_PHONE_EXISTS = new ErrorCode(106, "用户注册电话号码已存在!");
    ErrorCode USER_LOGIN_NOT_EXISTS = new ErrorCode(107, "用户登录身份不存在!");
    ErrorCode USER_LOGIN_PARAM_NULL = new ErrorCode(108, "用户登录参数为空!");
    ErrorCode USER_LOGIN_PHONE_ERROR = new ErrorCode(109, "用户登录手机号格式错误!");
    ErrorCode USER_LOGIN_CODE_ERROR = new ErrorCode(110, "用户登录验证码错误!");
    ErrorCode USER_LOGIN_IDENTITY_ERROR = new ErrorCode(111, "用户登录身份错误!");
    ErrorCode USER_LOGIN_PWD_ERROR = new ErrorCode(112, "用户登录密码错误!");
    // ===== 验证码业务异常 =====
    ErrorCode USER_VERIFY_PHONE_ERROR = new ErrorCode(201, "用户验证电话号码格式错误!");
    ErrorCode USER_VERIFY_SEND_ERROR = new ErrorCode(202, "用户发送验证码失败!");
}
